import { createApp } from 'vue'
import App from './App.vue'
import 'lib-flexible/flexible'
import router from './router'
import store from './store'
import Vant from 'vant';
import 'vant/lib/index.css';
import '@/assets/styles/reset.css'
const app = createApp(App)
// 全局过滤器
app.config.globalProperties.$filters = {
  prefix(url: string) {
    if (url && url.startsWith('http')) {
      return url
    } else {
      url = `http://fastdfs.cbda1984.com/${url}`
      return url
    }
  }
}
app.use(store);
app.use(Vant);
app.use(router)
app.mount('#app')
